import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /sys/role/menu/list
 */
export function getSysRoleMenuList(params: GetSysRoleMenuListParams, config?: AxiosRequestConfig) {
    const paramsInput = {
        roleId: params.roleId,
    };
    return request.get<DeepRequired<any>>(`/sys/role/menu/list`, {
        params: paramsInput,
        ...config,
    });
}

export interface GetSysRoleMenuListParams {
    roleId: number;
}
